package org.example.rabbitmqdemo.listener;

import org.example.rabbitmqdemo.constant.Constants;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class DirectListener2 {
    private static final Logger log = LoggerFactory.getLogger(DirectListener2.class);

    @RabbitListener(queues = Constants.DIRECT_QUEUE2)
    public void listener1(String message) {
        log.info("队列["+Constants.DIRECT_QUEUE2+"]接收到清洗后的消息："+message);
    }
}
